home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / chat / ircii-2.8he / ircii-2 / help / ! < prev    next >
Encoding:
Text File  |  1993-05-04  |  1.7 KB  |  38 lines

  1. Usage: ![<history number>|<history match>]
  2.   The ! command is used to recall previous commands in your command
  3.   history for re-execution.  The ! command is unique in that when it
  4.   is used, it leaves the matching history entry in the input line for
  5.   re-editing.  You can specify a history entry either by its number
  6.   in the history list, or by a match with a given wildcard expression.
  7.   For example:
  8.     !10
  9.   will put entry 10 in the history list into the input line.  
  10.   The following:
  11.     !/MSG 
  12.   will search the history list for a line beginning with /MSG and
  13.   put it in the input line (an * is implied at the end of /MSG).  When
  14.   using ! command with a wildcard expression, subsequent uses of
  15.   the ! command continue their search in the history list from where 
  16.   they left off.  This is reset to the end of the list when a command
  17.   is executed that adds an entry to the history list. Also, if a
  18.   wildcard expression is used once, subseqent uses of ! with no
  19.   expression will use the previous wild card expression.  For example,
  20.   the following:
  21.     !/MSG
  22.     !
  23.   The first call returns the first match of /MSG in the history list, 
  24.   and the second returns the next match, and so on.  This is useful 
  25.   in the following key binding:
  26.     BIND ^R PARSE_COMMAND /!$"Search: "
  27.   With this, you can hit ^R and you will be prompted for a search
  28.   string in the history list.  If you want to then repeat the search
  29.   you simply have to hit ^R and hit return, since it will use
  30.   the previous search by default.
  31.   
  32.   Lastly, ! may be used in command aliases as well.  When it is
  33.   embedded in an alias it simply executes the matching history entry
  34.   without first putting it in the input line for re-editing.
  35.  
  36. See Also:
  37.   HISTORY
  38.